package com.corpgovernment.common.passport.client;

import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.common.passport.dto.req.PassportConfirmDTO;
import com.corpgovernment.common.passport.dto.req.PassportConvertReqDTO;
import com.corpgovernment.common.passport.dto.resp.PassportConvertRespDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/***
 * @author zwmao
 * @version 1.0.0
 * @date 2023/9/4
 **/
@FeignClient(name = "basic-manage", qualifier = "basicManagePassportClient", fallback = BasicManagePassportClientFallBack.class)
public interface BasicManagePassportClient {
    @PostMapping("/passport/convert")
    JSONResult<PassportConvertRespDTO> convertPassport(@RequestBody PassportConvertReqDTO passportConvertReqDTO);

    @PostMapping("/passport/confirm")
    boolean confirmPassport(@RequestBody PassportConfirmDTO passportConfirmDTO);

    @PostMapping("/passport/convertEnName")
    JSONResult<PassportConvertRespDTO> convertEnName(@RequestBody PassportConvertReqDTO passportConvertReqDTO);
}
